package com.example.study.student.service;

import com.example.study.student.dao.StudentMapper;
import com.example.study.student.entity.Student;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

@Service
@RequiredArgsConstructor
public class StudentServiceImpl {
    @NonNull
    private final StudentMapper studentMapper;

    /**
     * @description: 查询学生列表
     * @author: nannan
     * @date: 2020/9/10 10:34 下午

     * @return: java.util.List<com.example.study.student.entity.Student>
     */
    public List<Student> selectStudentList() {
        new ConcurrentHashMap<>();
        return studentMapper.selectAll();
    }
}
